import request from '@/axios'

export function getCustomerList() {
    return request({
        url: '/Customer/findCus',
        method: 'get'
    })
}

export function addCustomer(customer) {
    return request({
        url: '/Customer/addCus',
        method: 'post',
        params: customer
    })

}

export function findById(id) {
    return request({
        url: '/Customer/findById/' + id,
        method: 'get'
    })
}

export function updateCustomer(customer) {
    return request({
        url: '/Customer/updateCus/',
        method: 'put',
        params: customer
    })
}

export function deleteCus(id) {
    return request({
        url: '/Customer/deleteCus/' + id,
        method: 'delete',
    })
}
export function setCusState(customer) {
    return request({
        url: '/Customer/setCusState',
        method: 'put',
        params: customer
    })
}